package com.daviteq.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import org.springframework.web.bind.annotation.ResponseBody;

import com.daviteq.dto.RoleUser;

@Controller
@RequestMapping(value = "/rule")
public class RoleController {
	@RequestMapping(params = "action=getRole", method = RequestMethod.GET)
	public @ResponseBody
	List<RoleUser> myActionMethod() {

		List<RoleUser> groupUser = new ArrayList<RoleUser>();
		for (int i = 1; i <= 27; i++) {
			RoleUser group = new RoleUser();
			group.setGroup("Group " + i);
			groupUser.add(group);
		}
		return groupUser;

	}
}
